$(function(){
	showContetntTip();
	readUname();
	loadWelcome();
});


function showContetntTip(){
	layer.open({
		type:0,
		title:'系统提示',
		area:"auto",
		icon:1,
		btn:["en！来啦！"],
		/*btnAlign:'r',
		btnClose:1,*/
		time:2000,
		anim:2,
		
		content:"来啦! "+sessionStorage.getItem("username")+" 小老弟！"
	});
}



function readUname(){
	var username=sessionStorage.getItem("username");
	$("#usernameId").html( username);
}


function JinRongliuzhuan(){
	$("#mainFrame").load("jinrongzichanliuzhuan.html");
}
function BuDongchanliuzhuan(){
	$("#mainFrame").load("budongchanliuzhuan.html");
}


function loadWelcome(){
	$("#mainFrame").load("welcome.html");
}

function loadDataDict(){
	//layer.msg("aaa");
	$("#mainFrame").load("dataDictionaryManage.html");
	//layer.msg("aaa");
}
function loadPersonCenter(){
	$("#mainFrame").load("index.html");
}
function loadMoneyMethod(){
	$("#mainFrame").load("dataMoneymanage.html");
}
function loadCompany(){
	$("#mainFrame").load("dataCompanymanage.html");
}
function loadSystemUser(){
	$("#mainFrame").load("dataSystemmanage.html");
}
function loadAssetManage(){
	$("#mainFrame").load("baseInfoManage/paintAssetManage.html");
}
function loadCarManage(){
	$("#mainFrame").load("baseInfoManage/carAssetManage.html");
}



function loadImmovablesInfo(){
	$("#mainFrame").load("baseInfoManage/loadImmovablesInfo.html");
}
function loadImmovablesManage(){
	$("#mainFrame").load("baseInfoManage/paintImmovablesManage().html");
}
function loadMonetaryAssets(){
	$("#mainFrame").load("baseInfoManage/paintMonetaryAssets.html");
}
function loadCarMonetary(){
	$("#mainFrame").load("baseInfoManage/carMonetaryAssets.html");
}





function sysExit(){
	layer.confirm("确认要退出系统吗？",{
		btn:["确定","取消"],
		icon:3,
		btnAlign:"c",
		shade:.5,
		anim:0
	},function(){
		window.location.href="login.html";
	});
}

function drawer(){
	layer.open({
		type:2,
		title:"安全设置",
		shadeClose:true,
		shade:0.01,
		closeBtn:1,
		anim:5,
		isOutAnim:false,
		area:['480px','300px'],
		content:["modifyPassword.html","no"],
		btn:["确定"],
		yes:function(){
			layer.msg("密码修改成功！",{
				icon:1,
				time:1500
			});
		}
	});
}
